<extend name="Index/index"/>

<block name="content">
    <!--<div class="view-product" style="margin-top: 50px">-->
    <div class="info-center">
        <div class="manage-head">
            <h6 class="padding-left manage-head-con">{{$title}}</h6>

        </div>
    </div>
    <a href="{{$prev}}" class="layui-btn layui-btn-normal" style="margin: 20px 0 0 20px">返回上一页</a>
    <div class="layui-container" style="margin-top: 0px">
        <div class="layui-row" style="margin-top: 0px">

            <!--<div class="demoTable">-->
                <!--<a href="{{$prev}}" class="layui-btn layui-btn-normal">返回上一页</a>-->
            <!--</div>-->
            <div class="layui-col-md7" style="margin-top: 0px">
                <form class="layui-form" action="{{:U('User/addUsers')}}" method="post" enctype="multipart/form-data">
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户名</label>
                        <div class="layui-input-inline">
                            <input type="text" name="name" required  lay-verify="required"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">密码</label>
                        <div class="layui-input-inline">
                            <input type="text" name="pwd" value="123456" autocomplete="off" class="layui-input" disabled>
                        </div>
                        <div class="layui-form-mid layui-word-aux">默认密码:123456</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">性别</label>
                        <div class="layui-input-block">
                            <input type="radio" name="sex" value="0" title="女">
                            <input type="radio" name="sex" value="1" title="男" checked>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status" value="0" title="预备党员">
                            <input type="radio" name="status" value="1" title="正式党员" checked>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">手机号</label>
                        <div class="layui-input-inline">
                            <input type="number" name="tel" required  lay-verify="required"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">身份证号</label>
                        <div class="layui-input-inline">
                            <input type="number" name="card_num" required  lay-verify="required"  autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">类型</label>
                        <div class="layui-input-inline">
                            <select name="category" lay-search="" class="form-control">
                                <foreach name="cateList" item="val">
                                    <option value="{{$val.id}}">{{$val.name}}</option>
                                </foreach>

                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">分组</label>
                        <div class="layui-input-inline">
                            <select name="group" lay-search="" class="form-control">
                                <option>请选择分组</option>
                                <foreach name="groupList" item="val">
                                    <option value="{{$val.id}}">{{$val.group_name}}</option>
                                </foreach>

                            </select>
                        </div>
                        <div class="layui-form-mid layui-word-aux">书记或上级可以不选</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">入党时间</label>
                        <div class="layui-input-inline">
                            <input type="text" name="join_time" class="layui-input" id="test1" placeholder="yyyy-MM-dd">
                        </div>
                        <div class="layui-form-mid layui-word-aux">未入党的可以不填</div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">党费缴纳至</label>
                        <div class="layui-input-inline">
                            <input type="text" name="fee_time" class="layui-input" id="test3" placeholder="yyyy-MM">
                        </div>
                        <div class="layui-form-mid layui-word-aux">未缴纳过党费的可以不填</div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit >立即提交</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>

            </div>
        </div>
    </div>
    <script>
        //Demo
        layui.use('form', function(){
            var form = layui.form;

            //监听提交
            form.on('submit(formDemo)', function(data){
                layer.msg(JSON.stringify(data.field));
                return false;
            });
        });

        layui.use('laydate', function() {
            var laydate = layui.laydate;

            //常规用法
            laydate.render({
                elem: '#test1'
            });

            //年月选择器
            laydate.render({
                elem: '#test3'
                ,type: 'month'
            });
        });
    </script>


    <!--</div>-->

</block>